package com.handy.plugin.auth.action;

public class AuthDynaDemo extends Action {

	public String execute() {
		Integer authid=243;
		
		if (getAuthority().dynaIs(authid,"21","1")){
			System.out.println("21--1yes <br>");
		}else{
			System.out.println("21--1no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","2")){
			System.out.println("21--2yes <br>");
		}else{
			System.out.println("21--2no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","3")){
			System.out.println("21--3yes <br>");
		}else{
			System.out.println("21--3no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","4")){
			System.out.println("21--4yes <br>");
		}else{
			System.out.println("21--4no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","5")){
			System.out.println("21--5yes <br>");
		}else{
			System.out.println("21--5no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","6")){
			System.out.println("21--6yes <br>");
		}else{
			System.out.println("21--6no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","7")){
			System.out.println("21--7yes <br>");
		}else{
			System.out.println("21--7no <br>");
		}
		if (getAuthority().dynaIs(authid,"21","8")){
			System.out.println("21--8yes <br>");
		}else{
			System.out.println("21--8no <br>");
		}
		
		
		if (getAuthority().dynaIs(authid,"121","1")){
			System.out.println("121--1yes <br>");
		}else{
			System.out.println("121--1no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","2")){
			System.out.println("121--2yes <br>");
		}else{
			System.out.println("121--2no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","3")){
			System.out.println("121--3yes <br>");
		}else{
			System.out.println("121--3no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","4")){
			System.out.println("121--4yes <br>");
		}else{
			System.out.println("121--4no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","5")){
			System.out.println("121--5yes <br>");
		}else{
			System.out.println("121--5no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","6")){
			System.out.println("121--6yes <br>");
		}else{
			System.out.println("121--6no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","7")){
			System.out.println("121--7yes <br>");
		}else{
			System.out.println("121--7no <br>");
		}
		if (getAuthority().dynaIs(authid,"121","8")){
			System.out.println("121--8yes <br>");
		}else{
			System.out.println("121--8no <br>");
		}
		
		
		
		System.out.println(getAuthority().findPcolvalues(authid));

		return HANDY_ACTION_RESPONSE;
	}

}
